﻿
using System.Data;
using System.Data.SqlClient;
using System;
using FrameWork.Utility;
using InventoryProject.Framework.Entity;


namespace InventoryProject.FrameWork
{
    public class PermissionAccess
    {        
            
        public DataTable UserPermission_Qry(int ID)
        {
            SqlParameter[] param = new SqlParameter[1];
            param[0] = new SqlParameter("@pFormID", ID);
            return DBHelper.getDataTable_SP("sp_FormList_Qry", param);
        }
        public DataTable UserPermission_Save(string SType, UPermissionEntity _entity, string LoginID)
        {
            SqlParameter[] param = new SqlParameter[1];
            param[0] = new SqlParameter("@pType", SType);
            return DBHelper.getDataTable_SP("sp_FormList_Qry", param);
        }
    }
}